<script>
	import {
		mapMutations
	} from 'vuex';
	export default {
		methods: {
			...mapMutations(['login', 'setUserInfo', 'changeTabBar'])
		},
		onLaunch: function() {
			let token = uni.getStorageSync('token') || '';
			if (token !== '') {
				this.login({
					token
				});
				this.setUserInfo();
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
	/*每个页面公共css */

	/* radio选中的样式 */
	uni-radio .uni-radio-input {
		width: 26upx;
		height: 26upx;
	}

	uni-radio .uni-radio-input-checked {
		background-color: #ff6631 !important;
		border-color: #ff6631 !important;
	}

	uni-radio .uni-radio-input.uni-radio-input-checked:before {
		font-size: 14px;
	}

	/*  */
	uni-checkbox .uni-checkbox-input {
		width: 30upx;
		height: 30upx;
		border-radius: 50%;
		/* background-color: #ff7e4b; */
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		background-color: #ff7e4b;
		color: #FFFFFF;
		border: 1px solid #ff7e4b;
	}

	uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
		border: 1px solid #ff7e4b;
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
		font-size: 24upx;
		color: #FFFFFF;
	}

	/* checkbox */
	checkbox .wx-checkbox-input {
		width: 30upx;
		height: 30upx;
		border-radius: 50%;
	}

	checkbox .wx-checkbox-input.wx-checkbox-input-checked {
		background-color: #ff7e4b;
		color: #FFFFFF;
		border: 1px solid #ff7e4b;
	}

	checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
		color: #ffffff;
		font-size: 24upx;
	}

	/* radio */
	/* 选中后的 背景样式 （红色背景 无边框 可根据UI需求自己修改） */
	radio .wx-radio-input {
		width: 26upx;
		height: 26upx;
	}

	radio .wx-radio-input.wx-radio-input-checked {
		background-color: #ff6631 !important;
		border-color: #ff6631 !important;
	}

	/* 选中后的 对勾样式 （白色对勾 可根据UI需求自己修改） */
	radio .wx-radio-input.wx-radio-input-checked::before {
		color: #ffffff;
		font-size: 24upx;
	}


	/* 字体图标 */
	@font-face {
		font-family: yticon;
		font-weight: normal;
		font-style: normal;
		src: url('https://at.alicdn.com/t/font_1078604_w4kpxh0rafi.ttf') format('truetype');
	}

	@font-face {
		font-family: "iconfont";
		/* Project id 2662440 */
		src: url('//at.alicdn.com/t/font_2662440_84sj299w3t4.woff2?t=1626762429891') format('woff2'),
			url('//at.alicdn.com/t/font_2662440_84sj299w3t4.woff?t=1626762429891') format('woff'),
			url('//at.alicdn.com/t/font_2662440_84sj299w3t4.ttf?t=1626762429891') format('truetype');
	}

	.iconfont {
		font-family: "iconfont" !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.yticon {
		font-family: "yticon" !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.icon-you:before {
		content: "\e606";
	}


	.icon-my-icon6:before {
		content: "\e69f";
	}

	.icon-my-icon3:before {
		content: "\e69d";
	}

	.icon-my-icon4:before {
		content: "\e69e";
	}

	.icon-my-icon1:before {
		content: "\e698";
	}

	.icon-my-icon2:before {
		content: "\e69b";
	}

	.icon-my-icon5:before {
		content: "\e69c";
	}

	.icon-huanyipi:before {
		content: "\e694";
	}

	.icon-xuanzhong:before {
		content: "\e695";
	}

	.icon-weixuanzhong:before {
		content: "\e696";
	}

	.icon-xin-xuanzhong:before {
		content: "\e697";
	}

	.icon-xin-weixuanzhong:before {
		content: "\e699";
	}

	.icon-back1-copy:before {
		content: "\e69a";
	}

	.icon-back1:before {
		content: "\e693";
	}

	.icon-search:before {
		content: "\e68d";
	}

	.icon-paixu-xia:before {
		content: "\e68e";
	}

	.icon-back:before {
		content: "\e68f";
	}

	.icon-paixu-shang:before {
		content: "\e690";
	}

	.icon-zhongzhi:before {
		content: "\e691";
	}

	.icon-shanchu:before {
		content: "\e692";
	}

	.icon-weixin:before {
		content: "\e68c";
	}

	.icon-lijizixun:before {
		content: "\e68a";
	}

	.icon-dianhuazixun:before {
		content: "\e68b";
	}
</style>